#if !defined(AFX_SETPOLE_H__CF75AADE_0226_4CAA_B5C5_613D34D3FB0C__INCLUDED_)
#define AFX_SETPOLE_H__CF75AADE_0226_4CAA_B5C5_613D34D3FB0C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "NumSpinCtrl.h"
// SetPole.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CSetPole dialog

class CSetPole : public CDialog
{
// Construction
public:
	int m_iVPMode; // 0 - nothing, 1 - pole selection mode, 2 - show pole position and return to pole selection
	int	m_idx;
	int m_Count;

	CString *m_pStrings;
	CSetPole(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSetPole)
	enum { IDD = IDD_POLE };
	CButton	m_butAdd;
	CButton	m_butClear;
	CButton		m_butReplace;
	CButton		m_butDelete;
	CListBox	m_lsbPoles;
	long		m_lPole_XPos;
	long		m_lPole_YPos;
	long		m_lPole_Width;
	long		m_lPole_Height;

	long		m_lPolesX[10];
	long		m_lPolesY[10];
	long		m_lPolesWidth[10];
	long		m_lPolesHeight[10];

	BOOL		m_bExtPole;
	BOOL		m_bNoPole;
	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetPole)
	public:
	virtual int DoModal();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSetPole)
	afx_msg void OnPoleEditBtn();
	afx_msg void OnAddListBtn();
	virtual BOOL OnInitDialog();
	afx_msg void OnChangePoleParam();
	afx_msg void OnSelectionChangePoleList();
	afx_msg void OnBtnDelete();
	virtual void OnOK();
	afx_msg void OnClearList();
	afx_msg void OnReplaceListBtn();
	afx_msg void OnDblclkPoleList();
	afx_msg void OnCheckNoPole();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_csCurrentString;
	WINDOWPLACEMENT m_lpwndpl;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETPOLE_H__CF75AADE_0226_4CAA_B5C5_613D34D3FB0C__INCLUDED_)
